﻿<UserControl x:Class="AbhiRuchiFoods.SearchEmployeeInformation"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="800" d:DesignWidth="1024" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="5*"></RowDefinition>
            <RowDefinition Height="95*"></RowDefinition>
        </Grid.RowDefinitions>
        
        <Grid Grid.Row="0">
            <Label Name="lblHeader" Content="Abhiruchi Employee Search" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="Bold"></Label> 
        </Grid>
        
        <Grid Grid.Row="1">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="50*"></ColumnDefinition>
                    <ColumnDefinition Width="50*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                
                <Label Grid.Column="0" Margin="10,10,0,0" Name="lblAddEdir" Content="Search/Edit Employee" HorizontalAlignment="Left" VerticalAlignment="Top" FontWeight="Bold"></Label>
                <Label Grid.Column="0" Margin="10,50,0,0" Name="lblEmpType" Content="Employee Type" HorizontalAlignment="Left" VerticalAlignment="Top"></Label>
                <ComboBox Grid.Column="0" Margin="110,50,0,0" Width="250" Name="cmbEmpType" HorizontalAlignment="Left" VerticalAlignment="Top">
                    <ComboBoxItem Content="All" ToolTip="-1" IsSelected="True" />
                    <ComboBoxItem Content="Permanent Employee" ToolTip="1" />
                    <ComboBoxItem Content="Temporary Employee" ToolTip="0" />
                </ComboBox>
                
                <Label Grid.Column="0" Margin="10,90,0,0" Name="lblEmpName" Content="Employee Name" HorizontalAlignment="Left" VerticalAlignment="Top"></Label>
                <TextBox Grid.Column="0" Margin="110,90,0,0" Name="txtEmpName" HorizontalAlignment="Left" VerticalAlignment="Top" Width="250"></TextBox>

                <Label Grid.Column="0" Margin="10,140,0,0" Name="lblEmpId" Content="Employee No" HorizontalAlignment="Left" VerticalAlignment="Top"></Label>
                <TextBox Grid.Column="0" Margin="110,140,0,0" Name="txtEmpId" HorizontalAlignment="Left" VerticalAlignment="Top" Width="250"></TextBox>

                <Button Grid.Column="0" Margin="110,180,0,0" Name="btnSearch" Content="Search" Width="150" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" Click="btnSearch_Click"></Button>
                <Button Grid.Column="0" Margin="280,180,0,0" Name="btnClearSearch" Content="Clear Search" Width="150" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" Click="btnClearSearch_Click"></Button>

                <Image Grid.Column="1" Name="imgEmp" Margin="10,10,0,0"  Height="150" Width="150" HorizontalAlignment="Left" VerticalAlignment="Top" Source="/AbhiRuchiFoods;component/Images/Icon.png" Stretch="Fill"></Image>
                
                <Label Grid.Column="1" Margin="10,170,0,0" Name="lblEmp" Content="Employee No" HorizontalAlignment="Left" VerticalAlignment="Top"></Label>
                <Label Grid.Column="1" Margin="110,170,0,0" Name="lblEmpNo" HorizontalAlignment="Left" VerticalAlignment="Top"></Label>

                <Label Grid.Column="1" Margin="10,210,0,0" Name="lblEmpNameFull" Content="Employee Name" HorizontalAlignment="Left" VerticalAlignment="Top"></Label>
                <Label Grid.Column="1" Margin="110,210,0,0" Name="lblEmpFullName" HorizontalAlignment="Left" VerticalAlignment="Top"></Label>

                <Label Grid.Column="1" Margin="10,250,0,0" Name="lblPhone" Content="Phone No" HorizontalAlignment="Left" VerticalAlignment="Top"></Label>
                <Label Grid.Column="1" Margin="110,250,0,0" Name="lblPhoneNo" HorizontalAlignment="Left" VerticalAlignment="Top"></Label>

                <Label Grid.Column="1" Margin="10,290,0,0" Name="lblEmail" Content="Email Id" HorizontalAlignment="Left" VerticalAlignment="Top"></Label>
                <Label Grid.Column="1" Margin="110,290,0,0" Name="lblEmailId" HorizontalAlignment="Left" VerticalAlignment="Top"></Label>

                <Label Grid.Column="1" Margin="10,330,0,0" Name="lblAddress" Content="Address" HorizontalAlignment="Left" VerticalAlignment="Top"></Label>
                <Label Grid.Column="1" Margin="110,330,0,0" Name="lblPermanentAddress" HorizontalAlignment="Left" VerticalAlignment="Top"></Label>

                <Button Grid.Column="1" Margin="110,390,0,0" Name="btnEdit" Content="Edit Employee" Width="150" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" Click="btnEdit_Click" IsEnabled="False"></Button>
                
                <Label Name="lblAvailEmp" Grid.Column="0" Margin="10,230,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Content="Available Employee" FontWeight="Bold"></Label>
                <telerik:RadGridView HorizontalAlignment="Left" Margin="10,260,0,0" Name="gvEmp" VerticalAlignment="Top" DataContext="{Binding}" IsReadOnly="True" RowActivated="gvEmp_RowActivated" />
            </Grid>
        </Grid>
    </Grid>
</UserControl>
